package cn.ljy.mes.model.query;

import cn.ljy.mes.model.ShopCarProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;

@ApiModel(value="汽车商品查询类")
@Data
@NoArgsConstructor
public class ShopCarProductQuery extends ShopCarProduct {
    @ApiModelProperty(value = "最小价格，用于查询价格范围", required = true, example = "0.00")
    @DecimalMin(value = "0.00", inclusive = true,  message = "最小价格必须大于等于0")
    private BigDecimal minPrice;
    @DecimalMin(value = "0.00", inclusive = false,  message = "最大价格必须大于0")
    @ApiModelProperty(value = "最大价格，用于查询价格范围", required = true, example = "44800.00")
    private BigDecimal maxPrice;
}
